package birdsong.dummy;

import java.io.Serializable;

import birdsong.comm.ClientSideMessage;

public class ClientSideMessageDummy implements ClientSideMessage, Serializable {
    private static final long serialVersionUID = 1L;

    private Type tipo;
    private String payload;
    private String sendersNickname;

    /**
     * Creates a ClientSideMessageDummy, containing the type of message it is
     * (type), the payload (String), and the senders' nickname (string).
     * 
     * @param tipo
     * @param payload
     * @param senderNickname
     */

    public ClientSideMessageDummy(Type tipo, String payload, String sendersNickname) {
	this.tipo = tipo;
	this.payload = payload;
	this.sendersNickname = sendersNickname;
    }

    /**
     * Gets the type of message a ClientSideMessageDummy has.
     */

    @Override
    public Type getType() {
	return tipo;
    }

    /**
     * Gets the payload in a ClientSideMessageDummy.
     */

    @Override
    public String getPayload() {
	return payload;
    }

    /**
     * Gets the senders' nickname in a ClientSideMessageDummy.
     */

    @Override
    public String getSendersNickname() {
	return sendersNickname;
    }

}
